package org.jsola.hr.query;

import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.query.BaseQuery;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.util.Date;
import java.util.List;

/**
 * 分页查询员工参数
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class EmpSocPageQuery extends BaseQuery {

    private static final long serialVersionUID = 1L;

    @ApiParam(value = "公司Id")
    private String companyId;

    @ApiParam(value = "参保月Id")
    private String monthId;

    @ApiParam(value = "员工社保状态")
    private Integer empSocStatus;

    @ApiParam(value = "员工状态")
    private Integer empStatus;

    @ApiParam(value = "员工类型")
    private String postType;

    @ApiParam(value = "姓名或电话")
    private String nameOrPhone;

    @ApiParam(value = "入职开始时间")
    private Date joinDateStart;

    @ApiParam(value = "入职结束时间")
    private Date joinDateEnd;

    @ApiParam(value = "户口类型")
    private Integer regType;

    @ApiParam(value = "标签")
    private String tag;

    @ApiParam(value = "标签列表")
    private List<String> tagList;

    @ApiParam(value = "身份证号列表")
    private List<String> idCardList;

    @ApiParam(value = "年")
    private String year;

    @ApiParam(value = "月")
    private String month;

    @ApiParam(value = "是否筛选全部增员待增")
    private Boolean notAll;

    @ApiParam(value = "是否筛选无社保")
    private Boolean notSoc;

    @ApiParam(value = "是否筛选无医保")
    private Boolean notMe;

    @ApiParam(value = "是否筛选无公积金")
    private Boolean notPf;

    @ApiParam(value = "是否筛选全部减员待增")
    private Boolean haveAll;

    @ApiParam(value = "是否筛选已缴社保")
    private Boolean haveSoc;

    @ApiParam(value = "是否筛选已缴医保")
    private Boolean haveMe;

    @ApiParam(value = "是否筛选已缴公积金")
    private Boolean havePf;

    @ApiParam(value = "是否筛选本账单人员")
    private Boolean currentFilter;

    @ApiParam(value = "是否筛选本账单人员")
    private String nameOrPhoneOrIdCard;

    /**
     * 每页的条数
     */
    @ApiParam(value = "分页参数，每页的条数", example = "20")
    @Max(value = 1000, message = "pageSize不能大于1000")
    private Integer pageSize = 20;

    /**
     * 当前第几页
     */
    @ApiParam(value = "分页参数，第几页", example = "1")
    @Min(value = 1, message = "pageNo不能小于1")
    private Integer pageNo = 1;
}
